#ifndef TCPSERVER_H
#define TCPSERVER_H

#include <QObject>
#include <QTcpServer>
#include <QString>

class TcpServer : public QTcpServer
{
    Q_OBJECT
public:
    explicit TcpServer(QObject *parent = 0);

public:
	QString name;
	
protected:
    void incomingConnection(int socketDescriptor);
	
signals:
	void new_connection(int);
	void receive_data(const QString &);
	
public slots:
	void send_data(const QString &);
};

#endif // TCPSERVER_H
